Each data frame starts with LEFT sample. Line sequence is:

FRAME DELIMITER : LEFT1 : RIGHT1 : LEFT2 : RIGHT2 : LEFT3 : RIGHT3 : checksum

FIFO[0]	   =	LEFT	
FIFO[1]    =    RIGHT
FIFO[2]    =	LEFT
FIFO[3]    =    RIGHT
FIFO[4]	   =    LEFT
----
----
FIFO[1023] =    RIGHT

Odd  = LEFT
Even = RIGHT

------------

- Activate DCI when COFS indicates a right channel as being active, next read will be for left channel

Something like:



while(COFS == 0)
{ //wait here so I can sync with the COFS signal
}

DCICON1bits.DCIEN = 1; 		//Activate the DCI